<?php
#defin a class
class car {
    var $name= "Car";
    function getName() {
        return $this->name;
    }
}

$car = New Car();
$car->name = "Audi A6";
echo $car->getName();
